<?php
	require_once("pub.php");
	require_once(_ROOT."/db.php");
	require_once(_ROOT."/am/title.php");
?>
<?php
	$var_ID = $_GET['ID'];
	//echo $var_ID;
	$var_mark = checkYear($var_ID);
	$var_eid = substr($var_ID, 8, 4);
	//echo '<br />'.$var_mark.'<br />'.$var_eid.'<br />';
?>
<form action="process.php?ID=2&op=2&str=<?php echo $var_eid; ?>">
	<table width="768" align="center">
		<tr>
			<td><b>当前试题标志:<?php echo $var_mark.$var_eid ;?></b>
			</td>
		</tr>
		<tr height="30"></tr>
	</table>
	<table width="768" align="center">
		<?php
			$sql = 'select * from t_text where t_mark='.$var_mark.' and t_eid='.$var_eid;
			//echo $sql;
			$data = mysql_query($sql, $conn);
			while ($arr = mysql_fetch_array($data))
			{
		?>
		<tr>
			<td width="60"><b>内容:</b></td>
			<td width="708" align="left">
				<textarea name="ques" rows="8" cols="70" style="overflow=hidden"><?php echo $arr['t_ques']; ?></textarea>
			</td>
		</tr>
		<tr>
			<td><b>A:</b></td>
			<td align="left">
				<textarea name="opta" rows="2" cols="70" style="overflow=hidden"><?php echo $arr['opta']; ?></textarea>
			</td>
		</tr>
		<tr>
			<td><b>B:</b></td>
			<td align="left">
				<textarea name="optb" rows="2" cols="70" style="overflow=hidden"><?php echo $arr['optb']; ?></textarea>
			</td>
		</tr>
		<tr>
			<td><b>C:</b></td>
			<td align="left">
				<textarea name="optc" rows="2" cols="70" style="overflow=hidden"><?php echo $arr['optc']; ?></textarea>
			</td>
		</tr>
		<tr>
			<td><b>D:</b></td>
			<td align="left">
				<textarea name="optd" rows="2" cols="70" style="overflow=hidden"><?php echo $arr['optd']; ?></textarea>
			</td>
		</tr>
		<tr>
			<td><b>Key:</b></td>
			<td align="left">
				<textarea name="key" rows="1" cols="70" style="overflow=hidden"><?php echo $arr['t_key']; ?></textarea>
			</td>
		</tr>
		<tr>
			<td><b>KeyEx:</b></td>
			<td align="left">
				<textarea name="keyEx" rows="2" cols="70" style="overflow=hidden"><?php echo $arr['t_keyEx']; ?></textarea>
			</td>
		</tr>
		<tr>
			<table width="768" align="center">
				<tr>
					<td width="60"><b>当前分值:</b></td>
					<td width="20"><font color="blue"><b><?php echo $arr['t_point'];?></b></font></td>
					<td width="40">更改为:</td>
					<td width="80">
						<select name="year">
								<?php
								$sql = "select * from t_point";
								$data1 = mysql_query($sql, $conn);
								while ($arr = mysql_fetch_array($data1))
								{
								?>
							<option value="<?php echo $arr['t_point'];?>"><?php echo $arr['t_point'];?>分</option>	
								<?php
								}
								mysql_free_result($data1);
								?>
						</select>
					</td>
					<td width="568"></td>
				</tr>
			</table>
		</tr>
		<?php
			}
			mysql_free_result($data);
		?>
	</table>
	<table width="768" align="center" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td>
			<input name="submit" type="submit" value="提交" />
			</td>
		</tr>
	</table>
</form>
<?php
	require_once(_ROOT."/am/bottom.php");
?>